#include "DEHT.h"
#include "part2-3_shared.h"


typedef struct  /* This struct holds all information from .ini file */
{
    char LexiconName[MAX_INTPUT_SIZE];
    int ChainLength;
	int NumOfHashEntries;
	int ElementsInBucket;
	char Rule[MAX_INTPUT_SIZE];
	char MainRandSeed[MAX_INTPUT_SIZE];
	char HashFunction[16];
	char OutputFilePrefix[MAX_INTPUT_SIZE];
}INI_PARAMS;


/* allocates memory and fills INI_PARAMS structure */
INI_PARAMS get_params_from_INI_file(const char *filename);
int parse_string_value(char* buf, char* substring, char* output);
int parse_number_value(char* buf, char* subsring);


